<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>GraphPaths:  File sorgente backup/arco.h</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">GraphPaths
   &#160;<span id="projectnumber">1</span>
   </div>
   <div id="projectbrief">Creazione di grafi e calcolo dei percorsi minimi</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generato da Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Cerca');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Pagina&#160;Principale</span></a></li>
      <li><a href="annotated.html"><span>Classi</span></a></li>
      <li class="current"><a href="files.html"><span>File</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Cerca" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Elenco&#160;dei&#160;file</span></a></li>
      <li><a href="globals.html"><span>Elementi&#160;dei&#160;file</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Tutto</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classi</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>File</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Funzioni</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variabili</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Ridefinizioni di tipo (typedef)</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Definizioni</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Pagine</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_0b457ace402ca7986e274a9663e8d868.html">backup</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">arco.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="backup_2arco_8h.html">Vai alla documentazione di questo file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef ARCO_H</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define ARCO_H</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="backup_2nodo_8h.html">nodo.h</a>&quot;</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="backup_2elemento__ui_8h.html">elemento_ui.h</a>&quot;</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;</div>
<div class="line"><a name="l00007"></a><span class="lineno"><a class="line" href="classarco.html">    7</a></span>&#160;<span class="keyword">class </span><a class="code" href="classarco.html">arco</a> : <span class="keyword">public</span> <a class="code" href="classelemento__ui.html">elemento_ui</a></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;{</div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;    <span class="keyword">public</span>:</div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;        <a class="code" href="classarco.html#ae1b3f05213eaf7d6f2d9990823e3f79d">arco</a>();</div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;</div>
<div class="line"><a name="l00016"></a><span class="lineno"><a class="line" href="classarco.html#a8e7fd7f5dd013f80c4f6c455c381a053">   16</a></span>&#160;        <a class="code" href="classarco.html#a8e7fd7f5dd013f80c4f6c455c381a053">arco</a>(<a class="code" href="classnodo.html">nodo</a>* origine, <a class="code" href="classnodo.html">nodo</a>* destinazione, <span class="keywordtype">int</span> lunghezza) : origine(origine), destinazione(destinazione), lunghezza(lunghezza)</div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;        {   }</div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;        <span class="keyword">virtual</span> <a class="code" href="classarco.html#a684292a8e2848b0eb58522269fa14fcf">~arco</a>();</div>
<div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="classarco.html#a2a85ff7e0c52e05adfc491b8936368a8">   24</a></span>&#160;        gint <a class="code" href="classarco.html#a2a85ff7e0c52e05adfc491b8936368a8">get_lunghezza</a>() { <span class="keywordflow">return</span> lunghezza; }</div>
<div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="classarco.html#aff9b730bc7ea1ca2e6fa3ecf0e764924">   28</a></span>&#160;        <span class="keywordtype">void</span> <a class="code" href="classarco.html#aff9b730bc7ea1ca2e6fa3ecf0e764924">set_lunghezza</a>(gint val) { lunghezza = val; }</div>
<div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="classarco.html#a01f76868995431282e072021e6456c0c">   33</a></span>&#160;        <a class="code" href="classnodo.html">nodo</a>* <a class="code" href="classarco.html#a01f76868995431282e072021e6456c0c">get_origine</a>() { <span class="keywordflow">return</span> origine; }</div>
<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="classarco.html#a6206c1bcb56554a74974bb2467333709">   37</a></span>&#160;        <span class="keywordtype">void</span> <a class="code" href="classarco.html#a6206c1bcb56554a74974bb2467333709">set_origine</a>(<a class="code" href="classnodo.html">nodo</a>* val) { origine = val; }</div>
<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="classarco.html#ac0e43ca79ff2b7b937928ae951391de8">   42</a></span>&#160;        <a class="code" href="classnodo.html">nodo</a>* <a class="code" href="classarco.html#ac0e43ca79ff2b7b937928ae951391de8">get_destinazione</a>() { <span class="keywordflow">return</span> destinazione; }</div>
<div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="classarco.html#a23230ce8d616ec7b0fbea815b0fc39ae">   46</a></span>&#160;        <span class="keywordtype">void</span> <a class="code" href="classarco.html#a23230ce8d616ec7b0fbea815b0fc39ae">set_destinazione</a>(<a class="code" href="classnodo.html">nodo</a>* val) { destinazione = val; }</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;        gboolean <a class="code" href="classarco.html#a66476e1bd3bc35ee458273640565b8ae">is_minimo</a>();</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classarco.html#a1600370bdf240be13405de7338b20218">update</a>(gdouble <a class="code" href="classelemento__ui.html#a819a2d328d2634ac037d42c7830023ca">x</a>, gdouble <a class="code" href="classelemento__ui.html#a9c322c97f219f4e15fdf683cbe14c447">y</a>);</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classarco.html#aa411d733ef99f2937e8b078a2923c7a7">draw</a>(cairo_t* &amp;cr);</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    <span class="keyword">virtual</span> gboolean <a class="code" href="classarco.html#abbebe3d245045c8d86cfd8d2f88c3569">intersect</a>(gdouble <a class="code" href="classelemento__ui.html#a819a2d328d2634ac037d42c7830023ca">x</a>, gdouble <a class="code" href="classelemento__ui.html#a9c322c97f219f4e15fdf683cbe14c447">y</a>);</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    <span class="keyword">protected</span>:</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    <span class="keyword">private</span>:</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;        <a class="code" href="classnodo.html">nodo</a>* origine; </div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;        <a class="code" href="classnodo.html">nodo</a>* destinazione; </div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;        gint lunghezza; </div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;        </div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;        <span class="keywordtype">void</span> calcola_vertici_freccia(gdouble start_x, gdouble start_y, gdouble end_x, gdouble end_y, gdouble&amp; x1, gdouble&amp; y1, gdouble&amp; x2, gdouble&amp; y2);</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;        </div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;        <span class="keywordtype">void</span> calcola_nuovi_inizio_fine(gdouble &amp;start_x, gdouble &amp;start_y, gdouble &amp;end_x, gdouble &amp;end_y);</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;};</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;<span class="preprocessor">#endif // ARCO_H</span></div>
<div class="ttc" id="classarco_html_a23230ce8d616ec7b0fbea815b0fc39ae"><div class="ttname"><a href="classarco.html#a23230ce8d616ec7b0fbea815b0fc39ae">arco::set_destinazione</a></div><div class="ttdeci">void set_destinazione(nodo *val)</div><div class="ttdef"><b>Definition:</b> arco.h:46</div></div>
<div class="ttc" id="classarco_html_a1600370bdf240be13405de7338b20218"><div class="ttname"><a href="classarco.html#a1600370bdf240be13405de7338b20218">arco::update</a></div><div class="ttdeci">virtual void update(gdouble x, gdouble y)</div><div class="ttdef"><b>Definition:</b> arco.cc:145</div></div>
<div class="ttc" id="classarco_html_a8e7fd7f5dd013f80c4f6c455c381a053"><div class="ttname"><a href="classarco.html#a8e7fd7f5dd013f80c4f6c455c381a053">arco::arco</a></div><div class="ttdeci">arco(nodo *origine, nodo *destinazione, int lunghezza)</div><div class="ttdef"><b>Definition:</b> arco.h:16</div></div>
<div class="ttc" id="classelemento__ui_html"><div class="ttname"><a href="classelemento__ui.html">elemento_ui</a></div><div class="ttdef"><b>Definition:</b> elemento_ui.h:7</div></div>
<div class="ttc" id="classarco_html_a66476e1bd3bc35ee458273640565b8ae"><div class="ttname"><a href="classarco.html#a66476e1bd3bc35ee458273640565b8ae">arco::is_minimo</a></div><div class="ttdeci">gboolean is_minimo()</div><div class="ttdef"><b>Definition:</b> arco.cc:68</div></div>
<div class="ttc" id="classarco_html_abbebe3d245045c8d86cfd8d2f88c3569"><div class="ttname"><a href="classarco.html#abbebe3d245045c8d86cfd8d2f88c3569">arco::intersect</a></div><div class="ttdeci">virtual gboolean intersect(gdouble x, gdouble y)</div><div class="ttdef"><b>Definition:</b> arco.cc:14</div></div>
<div class="ttc" id="classelemento__ui_html_a819a2d328d2634ac037d42c7830023ca"><div class="ttname"><a href="classelemento__ui.html#a819a2d328d2634ac037d42c7830023ca">elemento_ui::x</a></div><div class="ttdeci">gdouble x</div><div class="ttdoc">Coordinata X dell&#39;oggetto. </div><div class="ttdef"><b>Definition:</b> elemento_ui.h:81</div></div>
<div class="ttc" id="classarco_html"><div class="ttname"><a href="classarco.html">arco</a></div><div class="ttdef"><b>Definition:</b> arco.h:7</div></div>
<div class="ttc" id="classarco_html_a6206c1bcb56554a74974bb2467333709"><div class="ttname"><a href="classarco.html#a6206c1bcb56554a74974bb2467333709">arco::set_origine</a></div><div class="ttdeci">void set_origine(nodo *val)</div><div class="ttdef"><b>Definition:</b> arco.h:37</div></div>
<div class="ttc" id="classarco_html_ac0e43ca79ff2b7b937928ae951391de8"><div class="ttname"><a href="classarco.html#ac0e43ca79ff2b7b937928ae951391de8">arco::get_destinazione</a></div><div class="ttdeci">nodo * get_destinazione()</div><div class="ttdef"><b>Definition:</b> arco.h:42</div></div>
<div class="ttc" id="classnodo_html"><div class="ttname"><a href="classnodo.html">nodo</a></div><div class="ttdef"><b>Definition:</b> nodo.h:10</div></div>
<div class="ttc" id="classarco_html_a01f76868995431282e072021e6456c0c"><div class="ttname"><a href="classarco.html#a01f76868995431282e072021e6456c0c">arco::get_origine</a></div><div class="ttdeci">nodo * get_origine()</div><div class="ttdef"><b>Definition:</b> arco.h:33</div></div>
<div class="ttc" id="backup_2nodo_8h_html"><div class="ttname"><a href="backup_2nodo_8h.html">nodo.h</a></div></div>
<div class="ttc" id="classarco_html_a2a85ff7e0c52e05adfc491b8936368a8"><div class="ttname"><a href="classarco.html#a2a85ff7e0c52e05adfc491b8936368a8">arco::get_lunghezza</a></div><div class="ttdeci">gint get_lunghezza()</div><div class="ttdef"><b>Definition:</b> arco.h:24</div></div>
<div class="ttc" id="classarco_html_aff9b730bc7ea1ca2e6fa3ecf0e764924"><div class="ttname"><a href="classarco.html#aff9b730bc7ea1ca2e6fa3ecf0e764924">arco::set_lunghezza</a></div><div class="ttdeci">void set_lunghezza(gint val)</div><div class="ttdef"><b>Definition:</b> arco.h:28</div></div>
<div class="ttc" id="classarco_html_aa411d733ef99f2937e8b078a2923c7a7"><div class="ttname"><a href="classarco.html#aa411d733ef99f2937e8b078a2923c7a7">arco::draw</a></div><div class="ttdeci">virtual void draw(cairo_t *&amp;cr)</div><div class="ttdef"><b>Definition:</b> arco.cc:75</div></div>
<div class="ttc" id="classarco_html_a684292a8e2848b0eb58522269fa14fcf"><div class="ttname"><a href="classarco.html#a684292a8e2848b0eb58522269fa14fcf">arco::~arco</a></div><div class="ttdeci">virtual ~arco()</div><div class="ttdef"><b>Definition:</b> arco.cc:9</div></div>
<div class="ttc" id="classarco_html_ae1b3f05213eaf7d6f2d9990823e3f79d"><div class="ttname"><a href="classarco.html#ae1b3f05213eaf7d6f2d9990823e3f79d">arco::arco</a></div><div class="ttdeci">arco()</div><div class="ttdef"><b>Definition:</b> arco.cc:4</div></div>
<div class="ttc" id="backup_2elemento__ui_8h_html"><div class="ttname"><a href="backup_2elemento__ui_8h.html">elemento_ui.h</a></div></div>
<div class="ttc" id="classelemento__ui_html_a9c322c97f219f4e15fdf683cbe14c447"><div class="ttname"><a href="classelemento__ui.html#a9c322c97f219f4e15fdf683cbe14c447">elemento_ui::y</a></div><div class="ttdeci">gdouble y</div><div class="ttdoc">Coordinata Y dell&#39;oggetto. </div><div class="ttdef"><b>Definition:</b> elemento_ui.h:82</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generato Mar 1 Lug 2014 08:14:03 per GraphPaths da &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>
</body>
</html>
